home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wonky Flux Batch 2019 02
/
Wonky_Flux_Batch_2019-02.zip
/
Wonky Flux Batch 2019-02
/
021 - HO Utilities - Clock Utility System.dsk
/
TIME.HO.DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2019-02-16
|
1KB
|
37 lines
100 REM S-C CLOCK DEMO
110 GOTO 1000
200 REM FIND TIMEMASTER SLOT
210 SLOT = 1
220 ADDR = SLOT *256 -16384
230 IF PEEK(ADDR) = 8 AND PEEK(ADDR +1) = 120 AND PEEK(ADDR +254) = 178 THEN 260
240 SLOT = SLOT +1: IF SLOT <8 THEN 220
250 PRINT "TIMEMASTER II H.O. NOT FOUND": END
260 PRINT "TIMEMASTER II H.O. FOUND IN SLOT "SLOT: RETURN
300 REM SELECT CLOCK
310 D$ = CHR$(4): PRINT D$"PR#"SLOT: PRINT D$"IN#"SLOT: RETURN
350 REM DE-SELECT CLOCK
360 PRINT D$"PR#0": PRINT D$"IN#0": RETURN
1000 REM READ TIMEMASTER
1010 GOSUB 200: REM FIND SLOT
1020 IF PEEK(ADDR +255) = 3 THEN 2000: REM S-C MODE
1030 GOSUB 300: REM SELECT CLOCK
1040 INPUT " ";A$
1050 GOSUB 350: REM DE-SELECT CLOCK
1060 PRINT A$
1070 END
2000 PRINT "TIMEMASTER MODE SELECTED"
2005 PRINT
2010 GOSUB 300: REM SELECT CLOCK
2020 INPUT " ";D1$
2030 INPUT "&";D2$
2040 INPUT "%";D3$
2045 INPUT ":";D4$
2050 INPUT "#";MO,WK,DA,HR,MI,SE
2060 GOSUB 350: REM DE-SELECT CLOCK
2070 PRINT " TIMEMASTER: "D4$
2080 PRINT "APPLE CLOCK: "D1$
2090 PRINT "THUNDER '%': "D3$
2100 PRINT "THUNDER '&': "D2$
2110 PRINT "THUNDER '#': "MO","WK","DA","HR","MI","SE
2120 PRINT
2130 END